﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks; 

namespace Sharp.DataTransferObject
{
    /// <summary>
    /// 人的信息
    /// </summary>
    public class PersonDTO : BaseDTO
    {
        /// <summary>
        /// 相片
        /// </summary>
        public string PicUrl { get; set; }
        /// <summary>
        /// 国籍
        /// </summary>
        public string Nationality { get; set; }

        /// <summary>
        /// 外文名字
        /// </summary>
        public string ForeignName { get; set; }

        public PersonDTO()
        {
            Groups = new List<GroupDTO>();
            Users = new List<UserDTO>();
        }

        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 全名
        /// </summary>
        public string FullName { get; set; }
        /// <summary>
        /// 姓名简拼
        /// </summary>
        public string Jianpin { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public MasterDataDTO Gender { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        /// 
        public MasterDataDTO Nation { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        ///  
        public string IdCard { get; set; }
        /// <summary>
        /// 出生年月
        /// </summary>
        public string Birthday { get; set; }
        /// <summary>
        /// 户籍
        /// </summary>
        public MasterDataDTO AdministrativeDivision { get; set; }

        public string AdministrativeDivisionCode { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        public int? Age { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 传真
        /// </summary>
        public string Fax { get; set; }
        /// <summary>
        /// 电子邮件
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 家庭地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 紧急联系人
        /// </summary>
        public string UrgentContact { get; set; }
        /// <summary>
        /// 紧急联系电话
        /// </summary>
        public string UrgentPhone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 添加日期
        /// </summary>
        public System.DateTime? CheckInTime { get; set; }
        /// <summary>
        /// 录入员的id
        /// </summary>
        public System.Guid? CheckInUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public System.DateTime? ModifiTime { get; set; }
        /// <summary>
        /// 修改数据的用户Id
        /// </summary>
        public System.Guid? ModifiedUserId { get; set; }

        /// <summary>
        /// 所属组织Id
        /// </summary>
        public System.Guid? OrgId { get; set; }
 

        /// <summary>
        /// 用户
        /// </summary>
        public virtual ICollection<UserDTO> Users { get; set; }
        /// <summary>
        /// 员工的组
        /// </summary>
        public virtual ICollection<GroupDTO> Groups { get; set; }

        public string NationCode { get; set; }

        public string GenderCode { get; set; }

        public MasterDataDTO EducationalBackground { get; set; }

        public string EducationalBackgroundCode { get; set; }
    }
}
